#include "render_target.h"
#include "renderer.h"
#include "matrix_stack.h"

using namespace krryn::view;
using namespace krryn::math;

void render_target::draw(renderer &a_Renderer){
	matrix_stack &l_Projection = a_Renderer.get_matrix_stack(matrix_projection);
	l_Projection.push();
	l_Projection.identity();

	matrix_stack &l_ModelView = a_Renderer.get_matrix_stack(matrix_modelview);
	l_ModelView.push();
	l_ModelView.identity();

	a_Renderer.render(a_Renderer.get_dummy_quad());

	l_Projection.pop();
	l_ModelView.pop();
}
